package redemo3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("redemo3");
        UserDAO dao=context.getBean(UserDAO.class);
        System.out.println(dao);

        Person p2=context.getBean(Person.class);
        System.out.println(p2);
    }

}
